package com.origin;

import java.util.HashMap;
import java.util.Map;

public class QuestionBankController {

    private QuestionBank questionBank = new QuestionBank();

    public QuestionBankController() {

        Map<String, String> map01 = new HashMap<String, String>();
        map01.put("A", "JAVA2 EE");
        map01.put("B", "JAVA2 Card");
        map01.put("C", "JAVA2 ME");
        map01.put("D", "JAVA2 HE");
        map01.put("E", "JAVA2 SE");

        questionBank.append(new ChoiceQuestion("JAVA所定义的版本中不包括",
                map01, "D")).append(new AnswerQuestion("什么床不能睡觉", "⽛床"));

    }

    public String cretaePaper() throws CloneNotSupportedException {
        QuestionBank questionBankClone = (QuestionBank) questionBank.clone();
        return questionBankClone.toString();
    }

}
